@echo off

javac cn/com/tiza/spiro/jvm/PretenureSizeThresholdTest.java

rem <No GC set>
java -XX:+PrintGCDetails -XX:+DisableExplicitGC -XX:PretenureSizeThreshold=1048576 -XX:MaxTenuringThreshold=10 -XX:+UseSerialGC -Xms20M -Xmx20M -Xmn10M -XX:SurvivorRatio=8 cn.com.tiza.spiro.jvm.PretenureSizeThresholdTest

rem <Parallel Scavenge>
rem java  -XX:+UseParallelGC -XX:+UseAdaptiveSizePolicy -XX:-PrintAdaptiveSizePolicy -XX:+PrintGCDetails -Xmx10m cn.com.tiza.spiro.jvm.serial.SerialGCTest

rem <Serial Old>
rem java  -XX:+UseSerialGC -XX:+UseAdaptiveSizePolicy -XX:+PrintAdaptiveSizePolicy -XX:+PrintGCDetails -Xmx50m cn.com.tiza.spiro.jvm.serial.SerialGCTest

rem <CMS>
rem java  -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -Xmx50m cn.com.tiza.spiro.jvm.serial.SerialGCTest
